<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" />
    <button v-on:click="testApi">测试axios</button>
    <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import axios from 'axios'
import uri from '@/config/uri'
export default {
  name: 'Home',
  methods: {
    testApi() {
      this.$http.get(uri.food).then((res) => {
        
      })

    },
    kk(){
      console.log("kkk")
    }
  },
  components: {
    HelloWorld,
  },
}
</script>
